﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Class_DAO;
using Class_DTO;
using System.Data;

namespace Class_BUS
{
    public  class BangGiaBUS
    {
        public static DataTable LoadDS_BangGia()
        {
            BangGiaDAO BGdao = new BangGiaDAO();
            DataTable dt = new DataTable();
            dt = BGdao.getDanhSachBG();
            return dt;
        }


        public static DataTable getBangGia_theoma(int pMa)
        {
            BangGiaDAO BGdao = new BangGiaDAO();
            DataTable dt = new DataTable();
            dt = BGdao.getBangGia_theoma(pMa);
            return dt;
        }


        public static bool ThemBangGia_BUS(BangGiaDTO dto)
        {
            BangGiaDAO BGdao = new BangGiaDAO();

            BGdao.ThemBangGia_DAO(dto);
            return true;

        }
       
    }
}
